package com.bwhx.eruler.dao.casdilly.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.bean.casdilly.SizeRule;
import com.bwhx.eruler.bean.hodo.HodoSizeRule;
import com.bwhx.eruler.dao.casdilly.SizeRuleDAO;
import com.bwhx.eruler.dao.impl.BaseDaoImpl;

@Repository
public class SizeRuleDAOImpl extends BaseDaoImpl<SizeRule> implements SizeRuleDAO {

	public SizeRuleDAOImpl() {
		this.setNs("com.bwhx.eruler.mapper.casdilly.SizeRuleMapper.");
	}
	
	@Override
	public List<SizeRule> findBySizeRuleID(String srid) {
		List<SizeRule> sr = getSqlSession().selectList(this.getNs() + "findBySizeRuleID", srid);

		return sr;
	}

	@Override
	public SizeRule findByName(String getsRName) {
		return getSqlSession().selectOne(this.getNs() + "findBySRName", getsRName);
	}

	@Override
	public List<HodoSizeRule> hodoFindBySizeRuleID(String srid) {
		
		List<HodoSizeRule> sr = getSqlSession().selectList("com.bwhx.eruler.mapper.hodo.SizeRuleMapper." + "findBySizeRuleID", srid);
 		return sr;
	}

	

	

	
	

	


/*	@Override
	public List<ClothesType> findByTypeCPIDSerial(String contractID) {
		List<ClothesType> selectList = getSqlSession().selectList(this.getNs() + "findByTypeCPIDSerial", contractID);
		
		for (ClothesType clothesType : selectList) {
			List<BodyItem> selectList2 = getSqlSession().selectList(this.getNs() + "getBodyItem", clothesType.getTypeItemsStr().split(","));
			clothesType.setTypeItems(selectList2);
		}
		
		return selectList;
	}*/
	
	

}
